﻿#ifndef BUFFER_TEST_H
#define BUFFER_TEST_H
#include <boost/test/included/unit_test.hpp>
#include <fmt/fmt.h>
#include "include/sh/Buffer.hpp"


BOOST_AUTO_TEST_SUITE(BUFFER_TEST)

BOOST_AUTO_TEST_CASE( buffer_test_module ) {
    fmt::println("buffer_test_module");

    sh::Buffer buf = sh::Buffer::fromHex("fafa0609");

    fmt::println(buf.toHex(':'));


}



BOOST_AUTO_TEST_CASE( streambuffer_test_module ) {
    fmt::println("streambuffer_test_module");

    sh::StreamBuffer sbuf;

    sbuf.assign(10, 0);

    fmt::println(sbuf.toHex());

}


BOOST_AUTO_TEST_CASE( end_test_module ) {
    getchar();
}

BOOST_AUTO_TEST_SUITE_END()




#endif // BUFFER_TEST_H
